package com.lyk.coursearrange.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lyk.coursearrange.common.core.excel.ExcelHeadEnum;
import com.lyk.coursearrange.common.exception.annotation.ExcelHeadStyle;

import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@ExcelHeadStyle(value = "填写须知:\n" +
        "            <1>本模板适用于 蒙以养正v1.0版本;\n" +
        "            <2>姓名为必填字段，其他为选填字段;\n" +
        "            <3>使用此表导入请把填写须知列移除谢谢!!!!;\n" +
        "            <4>时间格式一定要自定义成:yyyy-mm-dd，如2018-08-03,谢谢!!!!;", type = ExcelHeadEnum.EXCEL_DSMD)
public class ExcelCustomerInformationOutData implements Serializable {


    @ExcelProperty(value="微信号",index=0)
    @ColumnWidth(20)
    private String customerWx;

    @ExcelProperty(value="微信二维码",index=1)
    @ColumnWidth(20)
    @ContentStyle(dataFormat = 100)
    private String customerEwm;

    @ExcelProperty(value="教师",index=2)
    @ColumnWidth(20)
    private String customerTeacherName;

    @ExcelProperty(value="学生姓名",index=3)
    @ColumnWidth(20)
    private String customerStudent;

    @ExcelProperty(value="客资来源",index=4)
    @ColumnWidth(20)
    private String sourceName;

    @ExcelProperty(value="来源负责人",index=5)
    @ColumnWidth(20)
    private String sourcepeopleName;


    @ExcelProperty(value = "添加方式", index = 6)
    @ColumnWidth(20)
    private String customerIsactive;

    @ExcelProperty(value = "创建时间", index = 7)
    @ColumnWidth(20)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String createTime;

    @ExcelProperty(value = "状态", index = 8)
    @ColumnWidth(20)
    private String customerState;


}